home *** CD-ROM | disk | FTP | other *** search
- /* Revision History:
-
- 93/12/24 aih - added font id function
-
- 91/01/05 Ari Halberstadt
- - Inserted this standard header in all files */
-
- #include "FontLib.h"
-
- /* return height of current font */
- short FontHeight(void)
- {
- FontInfo info;
-
- GetFontInfo(&info);
- return(info.ascent + info.descent + info.leading);
- }
-
- /* return the actual ID of the font */
- short FontID(short font)
- {
- if (font == applFont) {
- font = GetSysPPtr()->font + 1;
- if (font == applFont)
- font = geneva;
- }
- return(font);
- }
-